报错描述

  • java.lang.IllegalStateException: Could not load TestContextBootstrapper [null]. Specify @BootstrapWith’s ‘value’ attribute or make the default bootstrapper class available.

    解决

  • spring-web与spring-test版本不一致,把版本号注释掉,屏蔽最新版本消息

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-test</artifactId>
        <!--<version>RELEASE</version>-->
        <scope>compile</scope>
    </dependency>